﻿@model IEnumerable<JuniorProject.Models.SearchModel>

<table id="table" class="tablesorter">
    <thead>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.PostingID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Title)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Location)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.InsertDate)
        </th>
    </tr>
    </thead>

    <tbody>
@foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.PostingID)
            </td>
            <td>
                @Html.ActionLink(item.Title, "JobPostingDetails", new { id = item.PostingID })
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Location)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.InsertDate.Month).
                @Html.DisplayFor(modelItem => item.InsertDate.Day).
                @Html.DisplayFor(modelItem => item.InsertDate.Year)
            </td>
        </tr>
}
    </tbody>
</table>